//---------------------------------------------------------------------------

#ifndef vS_AjoutAdresseH
#define vS_AjoutAdresseH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Buttons.hpp>

#include "WebHelp.h"
#include "CRefMultiple.h"
//---------------------------------------------------------------------------
class TAjoutAdresse : public TForm
{
__published:	// Composants gérés par l'EDI
    TPanel *pBouton;
    TBitBtn *bbOk;
    TBitBtn *bbAnnuler;
    TPanel *pFont;
    TPanel *pRefUnique;
    TLabel *lLogiciel;
    TLabel *lVersion;
    TLabel *lReference;
    TLabel *lDesignation;
    TLabel *lPageWeb;
    TLabel *lPageAttente;
    TEdit *eLogiciel;
    TEdit *eVersion;
    TComboBox *cbRef;
    TEdit *eDesignation;
    TComboBox *cbAttente;
    TMemo *mPageWeb;
    TBitBtn *bbConsulter;
    void __fastcall bbOkClick(TObject *Sender);
    void __fastcall cbRefChange(TObject *Sender);
    void __fastcall bbConsulterClick(TObject *Sender);
private:	// Déclarations utilisateur
    int m_nLogiciel;
    int m_nVersion;
public:		// Déclarations utilisateur
    __fastcall TAjoutAdresse(TComponent* Owner, const int Logiciel, const int Version);
    int  __fastcall CompterReference( const AnsiString Ref );
    bool __fastcall VerifierRef(const AnsiString Ref);
    bool __fastcall VerifierRefAdresse( const AnsiString Ref,
                                        const AnsiString Adresse );
};
//---------------------------------------------------------------------------
#endif
